61c60842f357e0e7e4be812c6e2b52053c4c6134,gdx/src/com/badlogic/gdx/graphics/g2d/SpriteBatch.java,SpriteBatch,draw,#Texture#number#number#number#number#number#number#,512
Before Change
if (!drawing) throw new IllegalStateException("SpriteBatch.begin must be called before draw.");
if (texture != lastTexture) {
switchTexture(texture);
} else if (idx == vertices.length) renderMesh();
final float u = srcX * invTexWidth;
After Change
public void draw (Texture texture, float x, float y, int srcX, int srcY, int srcWidth, int srcHeight) {
if (!drawing) throw new IllegalStateException("SpriteBatch.begin must be called before draw.");
float[] vertices = this.vertices;
if (texture != lastTexture)
switchTexture(texture);
else if (idx == vertices.length) //
renderMesh();
final float u = srcX * invTexWidth;
final float v = (srcY + srcHeight) * invTexHeight;
final float u2 = (srcX + srcWidth) * invTexWidth;
final float v2 = srcY * invTexHeight;
final float fx2 = x + srcWidth;
final float fy2 = y + srcHeight;
int idx = this.idx;
vertices[idx++] = x;
vertices[idx++] = y;
vertices[idx++] = color;